<?php
/**
 * CakeCMS - 验证码
 * 功能模块: 生成验证码
 * 
 * @author zzdboy
 * @version 1.0
 */
class VerificationsController extends AppController {
	public $name = 'Verifications';
	public $uses = array ();
	public $components = array (
			'Verification' 
	);
	
	/**
	 * 生成验证码
	 */
	public function show() {
		$this->autoRender = false;
		Configure::write ( 'debug', 0 );
		
		header ( "Content-type: image/png" );
		$this->Verification->createImage ();
	}
}
?>